<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

$cid = $route->GET("cid");

if ($ao_id = $route->getAdminId()){
	$db->sendQuery("delete from `additional_office` where `ao_id` = '$ao_id' limit 1");
}

goToPage("/admin/offices?cid=$cid");
?>